package domain;

public abstract class AbstractTower implements Tower{

	protected Point location;
	public String getOutputString(){
		StringBuilder builder = new StringBuilder();
		builder.append(getPosition().getX());
		builder.append(" ");
		builder.append(getPosition().getY());
		builder.append(" ");
		builder.append(getLevel());
		builder.append(" ");
		builder.append(getType().getValue());
		return builder.toString();
	}
	
	public void setLocation(int x,int y){
		this.location = new Point(x,y);
	}
	
	public String toString(){
		return getPosition().getX() + ":" + getPosition().getY() + ":" + getType() + ":" + getLevel();
	}
 
}
